<?php
/**
 * The template for displaying member pages.
 *
 *
 * 
 */
 
$tlset = get_option( 'tlset' );
  

get_header(); ?>

				
	<?php while ( have_posts() ) : the_post();
		$sbar = get_post_meta($post->ID, 'cro_sidebar', true);
		echo cro_headerimg($post->ID, 'page');
		$project_id = get_post_meta($post->ID, 'ign_project_id', true);

	?>

			</div>
		</div>
	</div>

	<div class="mainbody">
		<div class="mainin">

	<div class="main singleitem">				
		<div class="row singlepage">

				<div class="eight column">
					<div class="page">
						<?php
							if (isset($_GET['purchaseform']) && $_GET['prodid'] == $project_id) {
								echo do_shortcode('[project_purchase_form]');
							} else if (is_single()) {
								echo do_shortcode( '[project_page_content product="'.$project_id.'"]');
							}
						?>
					</div>
				</div>

				<div class="four column">
					<ul class="mainwidget widgside widginside">
						<li class="widget-container widget_product_widget ">
							<?php 
								echo do_shortcode( '[project_page_widget product="'.$project_id.'"]'); 
							?>

						</li>							
					</ul>
				</div>
		</div>
	</div>

	<?php endwhile; // end of the loop. ?>


<?php get_footer(); ?>